/**
 * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
 *
 * This library is free software; you can redistribute it and/or modify it under
 * the terms of the GNU Lesser General Public License as published by the Free
 * Software Foundation; either version 2.1 of the License, or (at your option)
 * any later version.
 *
 * This library is distributed in the hope that it will be useful, but WITHOUT
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
 * details.
 */

package com.skali.portlet.governmentSpending.service.model;

import com.liferay.portal.model.BaseModel;
import com.liferay.portal.service.ServiceContext;

import com.liferay.portlet.expando.model.ExpandoBridge;

import java.io.Serializable;

import java.util.Date;
import java.util.Locale;
import java.util.Map;

/**
 * The base model interface for the SpendingType service. Represents a row in the &quot;GovtSpending_SpendingType&quot; database table, with each column mapped to a property of this class.
 *
 * <p>
 * This interface and its corresponding implementation {@link com.skali.portlet.governmentSpending.service.model.impl.SpendingTypeModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.skali.portlet.governmentSpending.service.model.impl.SpendingTypeImpl}.
 * </p>
 *
 * <p>
 * Never modify or reference this interface directly. All methods that expect a spending type model instance should use the {@link SpendingType} interface instead.
 * </p>
 *
 * @author Rizwan
 * @see SpendingType
 * @see com.skali.portlet.governmentSpending.service.model.impl.SpendingTypeImpl
 * @see com.skali.portlet.governmentSpending.service.model.impl.SpendingTypeModelImpl
 * @generated
 */
public interface SpendingTypeModel extends BaseModel<SpendingType> {
	/**
	 * Gets the primary key of this spending type.
	 *
	 * @return the primary key of this spending type
	 */
	public long getPrimaryKey();

	/**
	 * Sets the primary key of this spending type
	 *
	 * @param pk the primary key of this spending type
	 */
	public void setPrimaryKey(long pk);

	/**
	 * Gets the spending id of this spending type.
	 *
	 * @return the spending id of this spending type
	 */
	public long getSpendingId();

	/**
	 * Sets the spending id of this spending type.
	 *
	 * @param SpendingId the spending id of this spending type
	 */
	public void setSpendingId(long SpendingId);

	/**
	 * Gets the spending name of this spending type.
	 *
	 * @return the spending name of this spending type
	 */
	public String getSpendingName();

	/**
	 * Gets the localized spending name of this spending type. Uses the default language if no localization exists for the requested language.
	 *
	 * @param locale the locale to get the localized spending name for
	 * @return the localized spending name of this spending type
	 */
	public String getSpendingName(Locale locale);

	/**
	 * Gets the localized spending name of this spending type, optionally using the default language if no localization exists for the requested language.
	 *
	 * @param locale the local to get the localized spending name for
	 * @param useDefault whether to use the default language if no localization exists for the requested language
	 * @return the localized spending name of this spending type. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
	 */
	public String getSpendingName(Locale locale, boolean useDefault);

	/**
	 * Gets the localized spending name of this spending type. Uses the default language if no localization exists for the requested language.
	 *
	 * @param languageId the id of the language to get the localized spending name for
	 * @return the localized spending name of this spending type
	 */
	public String getSpendingName(String languageId);

	/**
	 * Gets the localized spending name of this spending type, optionally using the default language if no localization exists for the requested language.
	 *
	 * @param languageId the id of the language to get the localized spending name for
	 * @param useDefault whether to use the default language if no localization exists for the requested language
	 * @return the localized spending name of this spending type
	 */
	public String getSpendingName(String languageId, boolean useDefault);

	/**
	 * Gets a map of the locales and localized spending name of this spending type.
	 *
	 * @return the locales and localized spending name
	 */
	public Map<Locale, String> getSpendingNameMap();

	/**
	 * Sets the spending name of this spending type.
	 *
	 * @param SpendingName the spending name of this spending type
	 */
	public void setSpendingName(String SpendingName);

	/**
	 * Sets the localized spending name of this spending type.
	 *
	 * @param locale the locale to set the localized spending name for
	 * @param SpendingName the localized spending name of this spending type
	 */
	public void setSpendingName(Locale locale, String SpendingName);

	/**
	 * Sets the localized spending names of this spending type from the map of locales and localized spending names.
	 *
	 * @param SpendingNameMap the locales and localized spending names of this spending type
	 */
	public void setSpendingNameMap(Map<Locale, String> SpendingNameMap);

	/**
	 * Gets the description of this spending type.
	 *
	 * @return the description of this spending type
	 */
	public String getDescription();

	/**
	 * Gets the localized description of this spending type. Uses the default language if no localization exists for the requested language.
	 *
	 * @param locale the locale to get the localized description for
	 * @return the localized description of this spending type
	 */
	public String getDescription(Locale locale);

	/**
	 * Gets the localized description of this spending type, optionally using the default language if no localization exists for the requested language.
	 *
	 * @param locale the local to get the localized description for
	 * @param useDefault whether to use the default language if no localization exists for the requested language
	 * @return the localized description of this spending type. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned.
	 */
	public String getDescription(Locale locale, boolean useDefault);

	/**
	 * Gets the localized description of this spending type. Uses the default language if no localization exists for the requested language.
	 *
	 * @param languageId the id of the language to get the localized description for
	 * @return the localized description of this spending type
	 */
	public String getDescription(String languageId);

	/**
	 * Gets the localized description of this spending type, optionally using the default language if no localization exists for the requested language.
	 *
	 * @param languageId the id of the language to get the localized description for
	 * @param useDefault whether to use the default language if no localization exists for the requested language
	 * @return the localized description of this spending type
	 */
	public String getDescription(String languageId, boolean useDefault);

	/**
	 * Gets a map of the locales and localized description of this spending type.
	 *
	 * @return the locales and localized description
	 */
	public Map<Locale, String> getDescriptionMap();

	/**
	 * Sets the description of this spending type.
	 *
	 * @param Description the description of this spending type
	 */
	public void setDescription(String Description);

	/**
	 * Sets the localized description of this spending type.
	 *
	 * @param locale the locale to set the localized description for
	 * @param Description the localized description of this spending type
	 */
	public void setDescription(Locale locale, String Description);

	/**
	 * Sets the localized descriptions of this spending type from the map of locales and localized descriptions.
	 *
	 * @param DescriptionMap the locales and localized descriptions of this spending type
	 */
	public void setDescriptionMap(Map<Locale, String> DescriptionMap);

	/**
	 * Gets the modified date of this spending type.
	 *
	 * @return the modified date of this spending type
	 */
	public Date getModifiedDate();

	/**
	 * Sets the modified date of this spending type.
	 *
	 * @param ModifiedDate the modified date of this spending type
	 */
	public void setModifiedDate(Date ModifiedDate);

	/**
	 * Gets a copy of this spending type as an escaped model instance by wrapping it with an {@link com.liferay.portal.kernel.bean.AutoEscapeBeanHandler}.
	 *
	 * @return the escaped model instance
	 * @see com.liferay.portal.kernel.bean.AutoEscapeBeanHandler
	 */
	public SpendingType toEscapedModel();

	public boolean isNew();

	public void setNew(boolean n);

	public boolean isCachedModel();

	public void setCachedModel(boolean cachedModel);

	public boolean isEscapedModel();

	public void setEscapedModel(boolean escapedModel);

	public Serializable getPrimaryKeyObj();

	public ExpandoBridge getExpandoBridge();

	public void setExpandoBridgeAttributes(ServiceContext serviceContext);

	public Object clone();

	public int compareTo(SpendingType spendingType);

	public int hashCode();

	public String toString();

	public String toXmlString();
}